<template>
  <div class="sona">
    <h3>sona</h3>
    <button @click="btnClick">发送信息sonb</button>
  </div>
</template>
<script>
export default {
  beforeRouteEnter (to, from, next) {
    // console.log('sona:beforeRouteEnter')
  },
  beforeCreate () {
    console.log('beforeCreate:sona')
  },
  created () {
    console.log('created:sona')
  },
  beforeMount () {
    console.log('beforeMount:sona')
  },
  mounted () {
    console.log('mounted:sona')
  },
  methods: {
    btnClick () {
      this.$bus.$emit('atob', Date.now())
    }
  }
}
</script>
<style lang="scss" scoped>
.sona {
  width: 300px;
  height: 300px;
  border: 5px solid red;
}
</style>
